alert('海陆空js');
let duBao;
getText($('h1,h2,h3'));
duBao = new DuBao($('.article-header h1:parent,.article-header h2:parent,.article-header h3:parent'), $('#article-content p'));
duBao.start();

function getText(e) {
    $(e).each((index, element) => {
        if ($(element).length > 0) {
            console.log("element.text()");
            console.log($(element).text());
        }else{
            console.log('元素为空');
        }
    });
}
